'use strict';

module.exports = {
/**
   * 校验分页
   */
  w_validate_page() {
    this.validate({
      pageSize: {
        required: false,
        type: 'number',
        convertType: 'number',
        default: 10,
        min: 1,
        max: 100,
      },
      pageNum: {
        required: false,
        convertType: 'number',
        type: 'number',
        default: 1,
        min: 1,
      },
    }, this.query);
  },
};
